<div class="modal hide fade in" id="docfull" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h3 id="myModalLabel"><?=$t_detadoc;?></h3>
        </div>

        <div class="modal-body">

            <p>
                <ul id="myTab" class="nav nav-tabs">

                   <li class="active">
                        <a data-toggle="tab" href="#arvore"><?=$t_documento_arvore;?></a>   
                   </li>
		     <li>
                        <a data-toggle="tab" href="#doctodos"><?=$t_documento_lista;?></a>   
                   </li>

                </ul>

		<div id="myTabContent" class="tab-content">
    			
                    <div id="arvore" class="tab-pane fade active in">
        		<?php include "mod/documento/tree.php"; ?>
                    </div>

                    <div id="doctodos" class="tab-pane fade">

                        <ul class="nav nav-tabs nav-stacked">
                        <?php
                        $sql = "SELECT * FROM doc 
                        INNER JOIN docarea ON doc.doc_are_id=docarea.doc_are_id 
                        WHERE doc.sta_id='1' AND docarea.doc_tip_id='{$linha_doctipo['doc_tip_id']}'
                        ORDER BY doc.doc_id DESC";
                        $res = sql($sql);
                        $i=0;
                        while($linha = mysql_fetch_array($res)) {
                        ?>
                        <li><a href="<?=$linha['doc_url'];?>"><?="{$linha['doc_nome']}&nbsp;&nbsp;({$linha['doc_are_nome']})&nbsp;&nbsp;-&nbsp;&nbsp;".todatabr($linha['doc_data'])."&nbsp;&nbsp;{$linha['doc_hora']} Z";?></a></li>
                        <?php } ?>
                        </ul>

                    </div>

		</div>

            </p>

        </div>

        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true"><?=$t_fech;?></button>
        </div>
    
</div>